data = bytearray("hello", "utf-8")
s = slice(2, 4, 1)
part = data[s]
print(part)
data[s] = part.upper()
print(data)
